package com.gln.bloger.dao;

/*
 * WebsiteManager.java
 * 
 * Created on 2007-12-19,17:16:11
 * 
 */

import java.util.List;

import com.gln.bloger.exception.BlogerException;
import com.gln.bloger.pojos.User;
import com.gln.bloger.pojos.Website;
/**
 *
 * @author renxj
 */
public interface WebsiteDao extends BaseDao<Website>{
               
       /**
        * 
        * @return List
        * @throws BlogerException
        */ 
       public  List<Website> getWebsites() throws BlogerException;
       
       /**
        * 
        * @param enabled 
        * @return List
        * @throws BlogerException
        */
       public  List<Website> getWebsites(Boolean enabled) throws BlogerException;
       
       /**
        * 
        * @param name 
        * @return web site
        * @throws BlogerException
        */
       public Website getByHandle(String handle) throws BlogerException;
       
       /**
        * 
        * @param userName
        * @return
        * @throws BlogerException
        */
       public List<Website> getByCreator(User creator) throws BlogerException;
}
